<div class="panel-default">
  <table lay-filter="demo" lay-size='lg'>
    <thead>
      <tr>

        <th lay-data="{field:'content'}"><%= CompanyCase.human_attribute_name(:content) %></th>

        <th lay-data="{field:'operation',width:200}"></th>
      </tr>
    </thead>

    <tbody>
      <% @company_cases.each do |company_case| %>
        <tr>

          <td><%= company_case.content %></td>

          <td>
            <%= link_to edit_admin_company_case_path(company_case), remote: true, class: "label" do -%><i class="iconfont icon-bianji"></i>编辑<% end %>
            <%= link_to [:admin, company_case], method: :delete, data: { confirm: '确定删除吗? 注意此操作无法撤销！' }, class: "label label-danger" do -%><i class="iconfont icon-shanchu"></i>删除<% end %>
          </td>
        </tr>
      <% end %>
    </tbody>
  </table>
  <%= link_to new_admin_company_case_path, remote: true do -%><button type="button" class="layui-btn"><i class="layui-icon">&#xe608;</i> <%= t('actions.new') + CompanyCase.model_name.human %></button><% end %>
  <!-- 分页 -->
  <%= render 'admin/public_views/page', record: @company_cases, record_count: @company_cases.count %>
</div>

<div id="add_company_case" style="display: none; padding: 20px"></div>